package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.domain.TenantQuestionnaireAnswer;

import java.util.List;
import java.util.Map;

public interface TenantQuestionnaireAnswerService {

    int deleteByPrimaryKey(Long id);

    int insert(TenantQuestionnaireAnswer record);

    int insertSelective(TenantQuestionnaireAnswer record);

    TenantQuestionnaireAnswer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantQuestionnaireAnswer record);

    int updateByPrimaryKey(TenantQuestionnaireAnswer record);

    List<TenantQuestionnaireAnswer> listAllQnAnswers(Long question_id);
    List<TenantQuestionnaireAnswer> getQnAnswerByQid(Long question_id);
    int delQnAnswer(Long question_id);

    int listAllQnAnswersCount(Map<String, Object> map);

    List<Map<String, Object>> getScoreByQnId(Long id);

    Map<String,Object> getQNAnswer(Map<String,Object> map);
}
